package com.daiyang.lottery.service.dto;

import cn.hutool.db.Page;
import com.daiyang.lottery.controller.param.PageListParam;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class PageListDTO<T> implements Serializable {
    /**
     * 总数
     */
    private Integer total;
    /**
     * 当前页数据
     */
    private List<T> records;

    public PageListDTO(Integer total, List<T> records) {
        this.records = records;
        this.total =total;
    }
}
